package com.atmilan.quartz.model.dto.daigo;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author hupeng
 * @since 2020-04-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class DaigoBrand extends Model<DaigoBrand> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @JsonProperty(value = "brand_id")
    @TableId(value = "brand_id",type = IdType.INPUT)
    private Integer brandId;
    /**
     * 首字母
     */
    @JsonProperty(value = "brand_zm")
    private String brandZm;
    /**
     * 品牌名称
     */
    @JsonProperty(value = "brand_name")
    private String brandName;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd  HH:mm:ss")
    private Date createTime;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd  HH:mm:ss")
    private Date editTime;

    @Override
    protected Serializable pkVal() {
        return this.brandId;
    }

}
